<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!--输出,条件,迭代标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page isELIgnored="false" %>
<!doctype html>
        <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
        <!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
        <!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
        <!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
        <head>
                <style>
                        body{
                                font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial;
                        }
                </style>
                <!-- META TAGS -->
                <meta charset="UTF-8" />
                <meta name="viewport" content="width=device-width, initial-scale=1.0">

                <title>程序员博客社区</title>
                <%--顶部小图标--%>
                <link rel="shortcut icon " type="images/x-icon" href="me.ico">
                <!-- Style Sheet-->
                <link rel='stylesheet'  href='css/header.css' type='text/css' media='all' />
                <link rel='stylesheet'  href='css/nprogress.css' type='text/css' media='all' />
                <link rel='stylesheet' id='custom-css-css' href='css/custom5152.html?ver=1.0' type='text/css'>
                <%--引入js文件--%>
                <%@include file="include_js.jsp" %>
                <script type='text/javascript' src='js/bootstrap/bootstrap.min.js'></script>
                <script type='text/javascript' src='js/userlogout.js'></script>
                <script type='text/javascript' src='js/nprogress.js'></script>
                <!--[if lt IE 9]>
                <script src="js/html5.js"></script>
                <![endif]-->

        </head>

        <body>
        <script>
                NProgress.start();
        </script>
        <!-- Start of Header -->
        <%@include file="header_bar.jsp" %>

                <!-- Start of Search Wrapper -->
        <%@include file="search_wrapper.jsp" %>
                                <!-- Start of Page Container -->
                <div class="page-container">
                        <div class="container">
                                <div class="row">

                                        <!-- start of page content -->
                                        <div class="span8 page-content">

                                                <!-- Basic Home Page Template -->
                                                <div class="row separator">
                                                        <section class="span4 articles-list">
                                                                <h3>最新发布文章</h3>
                                                                <ul class="articles">
                                                                        <c:forEach items="${latestContentList}" var="latestContent">
                                                                                <li class="article-entry standard">
                                                                                        <h4><a href="/community/view_blog?i=${latestContent.id}">${latestContent.title}</a><span title="收藏人数"  style="float: right">${latestContent.starCount}<i class="icon-star"></i></span></h4>
                                                                                        <span class="article-meta">
                    <fmt:formatDate value="${latestContent.pushtime}" pattern="yyyy年 MM月 dd日"/>发布在 <a href="/community/articles_list?cid=${latestContent.categoryId}" title="查看 ${latestContent.categoryName}分类下所有博客">${latestContent.categoryName}</a>分类中</span>
                                                                                        <span class="like-count">66</span>
                                                                                </li>
                                                                        </c:forEach>

                                                                </ul>
                                                        </section>


                                                        <section class="span4 articles-list">
                                                                <h3>最受欢迎文章</h3>
                                                                <ul class="articles">
                                                                        <c:forEach items="${mostfavoriteblogContentList}" var="mostfavoriteblogContent">
                                                                        <li class="article-entry standard">
                                                                                <h4><a href="/community/view_blog?i=${mostfavoriteblogContent.id}">${mostfavoriteblogContent.title}</a><span title="收藏人数"  style="float: right">${mostfavoriteblogContent.starCount}<i  style="float: left" class="icon-star"></i></span></h4>
                                                                                <span class="article-meta">
                    <fmt:formatDate value="${mostfavoriteblogContent.pushtime}" pattern="yyyy年 MM月 dd日"/>发布在 <a href="/community/articles_list?cid=${mostfavoriteblogContent.categoryId}" title="View all posts in ${mostfavoriteblogContent.categoryName}">${mostfavoriteblogContent.categoryName}</a>分类中</span>
                                                                                <span class="like-count">66</span>
                                                                        </li>
                                                                        </c:forEach>
                                                                </ul>
                                                        </section>
                                                </div>
                                        </div>
                                        <!-- end of page content -->


                                        <!-- start of sidebar -->
                                        <aside class="span4 page-sidebar">

                                                <section class="widget">
                                                        <div class="support-widget">
                                                                <h3 class="title">支持</h3>
                                                                <p class="intro">找不到想要的?如果您没有找到合适的,您可以联系我们</p><a href="mailto:fxm0911@foxmail.com">fxm0911@Foxmail.com</a>
                                                        </div>
                                                </section>

                                                <section class="widget">
                                                        <div class="quick-links-widget">
                                                                <h3 class="title">快速导航</h3>
                                                                <ul id="menu-quick-links" class="menu clearfix">
                                                                        <li><a href="/community/index">首页</a></li>
                                                                        <li><a href="/community/articles_list?o=1">博客列表</a></li>
                                                                        <li><a href="/community/Faq">FAQs</a></li>
                                                                        <li><a href="/community/contactUs">联系我们</a></li>
                                                                </ul>
                                                        </div>
                                                </section>

                                                <section class="widget">
                                                        <h3 class="title">您可能感兴趣的标签</h3>
                                                        <div class="">
                                                                <c:forEach items="${BlogLabelList}" var="BlogLabel" varStatus="currentStatus">
                                                                <a href="/community/tags?id=${BlogLabel.id}" class="label
                                                                <c:if test="${currentStatus.index%4==0}">label-success</c:if>
                                                                <c:if test="${currentStatus.index%4==1}">label-important</c:if>
                                                                <c:if test="${currentStatus.index%4==2}">label-info</c:if>
                                                                <c:if test="${currentStatus.index%4==3}">label-warning</c:if>
">${BlogLabel.labelName}</a>
                                                                </c:forEach>
                                                        </div>
                                                </section>

                                        </aside>
                                        <!-- end of sidebar -->
                                </div>
                        </div>
                </div>
        <script>
                NProgress.done();
        </script>
                <!-- End of Page Container -->
        <%--登录提示模态框开始--%>
        <a  class="hidden logoutsuccess" data-toggle="modal" data-target="#mustlogin">
        </a>
        <div class="modal fade" id="mustlogin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                        <div class="modal-content">
                                <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                                &times;
                                        </button>
                                        <h4 class="modal-title" id="myModalLabe2">
                                                恭喜
                                        </h4>
                                </div>
                                <div class="modal-body fail-message">
                                        登出成功
                                </div>
                                <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                                        </button>
                                </div>
                        </div><!-- /.modal-content -->
                </div><!-- /.modal -->
        </div>
        <%--登录提示模态框结束--%>
                <!-- Start of Footer -->
                <%@include file="footer_bar.jsp" %>
                <!-- End of Footer -->
                <a href="#top" id="scroll-top"></a>

        </body>
</html>